package scsc.pub.data;

import java.io.Serializable;
import org.apache.commons.lang.builder.ToStringBuilder;


/** 
 *        @hibernate.class
 *         table="DYNAMICMENU"
 *         schema="scsc"
 *         dynamic-update="true"
 *         dynamic-insert="true"
 *     
*/
public class Dynamicmenu implements Serializable {

    /** identifier field */
    private String menucode;

    /** persistent field */
    private String menuname;

    /** persistent field */
    private String menuflag;

    /** persistent field */
    private String transcode;

    /** persistent field */
    private String url;

    /** full constructor */
    public Dynamicmenu(String menucode, String menuname, String menuflag, String transcode, String url) {
        this.menucode = menucode;
        this.menuname = menuname;
        this.menuflag = menuflag;
        this.transcode = transcode;
        this.url = url;
    }

    /** default constructor */
    public Dynamicmenu() {
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="MENUCODE"
     *         
     */
    public String getMenucode() {
        return this.menucode;
    }

    public void setMenucode(String menucode) {
        this.menucode = menucode;
    }

    /** 
     *            @hibernate.property
     *             column="MENUNAME"
     *             length="60"
     *             not-null="true"
     *         
     */
    public String getMenuname() {
        return this.menuname;
    }

    public void setMenuname(String menuname) {
        this.menuname = menuname;
    }

    /** 
     *            @hibernate.property
     *             column="MENUFLAG"
     *             length="1"
     *             not-null="true"
     *         
     */
    public String getMenuflag() {
        return this.menuflag;
    }

    public void setMenuflag(String menuflag) {
        this.menuflag = menuflag;
    }

    /** 
     *            @hibernate.property
     *             column="TRANSCODE"
     *             length="8"
     *             not-null="true"
     *         
     */
    public String getTranscode() {
        return this.transcode;
    }

    public void setTranscode(String transcode) {
        this.transcode = transcode;
    }

    /** 
     *            @hibernate.property
     *             column="URL"
     *             length="100"
     *             not-null="true"
     *         
     */
    public String getUrl() {
        return this.url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("menucode", getMenucode())
            .toString();
    }

}
